package com.js.lib_common.mvp.model.response;

import com.contrarywind.interfaces.IPickerViewData;

import java.util.List;

/**
 * Created by wz on 2021/7/26.
 */
public class ProdyctInfoResponse  implements IPickerViewData {

    @Override
    public String toString() {
        return "ProdyctInfoResponse{" +
                "id='" + id + '\'' +
                ", productCode='" + productCode + '\'' +
                ", productName='" + productName + '\'' +
                ", productType='" + productType + '\'' +
                ", currentIndex='" + currentIndex + '\'' +
                ", createDt='" + createDt + '\'' +
                ", createBy='" + createBy + '\'' +
                ", orderType='" + orderType + '\'' +
                ", processMsgList=" + processMsgList +
                '}';
    }

    /**
         * id : f802c5eb67e440c58db3cfcab5dac262
         * productCode : 12378
         * productName : null
         * productType : null
         * currentIndex : null
         * createDt : 2021-06-09T05:25:46.000+00:00
         * createBy : ee8bf8d69c82453cbc9a1e2a6c20b2f9
         * processMsgList : []
         * orderType : null
         */

        private String id;
        private String productCode;
        private String productName;
        private String productType;
        private String currentIndex;
        private String createDt;
        private String createBy;
        private String orderType;
        private List<ProcessMsgBean> processMsgList;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getProductCode() {
            return productCode;
        }

        public void setProductCode(String productCode) {
            this.productCode = productCode;
        }

        public String getProductName() {
            return productName;
        }

        public void setProductName(String productName) {
            this.productName = productName;
        }

        public String getProductType() {
            return productType;
        }

        public void setProductType(String productType) {
            this.productType = productType;
        }

        public String getCurrentIndex() {
            return currentIndex;
        }

        public void setCurrentIndex(String currentIndex) {
            this.currentIndex = currentIndex;
        }

        public String getCreateDt() {
            return createDt;
        }

        public void setCreateDt(String createDt) {
            this.createDt = createDt;
        }

        public String getCreateBy() {
            return createBy;
        }

        public void setCreateBy(String createBy) {
            this.createBy = createBy;
        }

        public String getOrderType() {
            return orderType;
        }

        public void setOrderType(String orderType) {
            this.orderType = orderType;
        }

        public List<ProcessMsgBean> getProcessMsgList() {
            return processMsgList;
        }

        public void setProcessMsgList(List<ProcessMsgBean> processMsgList) {
            this.processMsgList = processMsgList;
        }

    @Override
    public String getPickerViewText() {
            if (productName==null||productName.isEmpty()){
                productName="无";
            }
        return    productName ;
    }
}
